home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / Appearance SDK 1.0.4 / Appearance Sample Code / Source / Assertions.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-16  |  667 b   |  42 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        Assertions.c
  3.  
  4.     Contains:    Assertion routines.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (edv)    Ed Voas
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <1>     9/11/97    edv        First checked in.
  25. */
  26.  
  27. #define DEBUG_MSG_TYPE 0
  28.  
  29. #include "Assertions.h"
  30. #include <stdio.h>
  31. #include <Types.h>
  32. #include <TextUtils.h>
  33.  
  34. void AssertMsg( char* msg, char* file, int line )
  35. {
  36.  
  37.     char    newMsg[256];
  38.     
  39.     sprintf( newMsg, "%s, File: %s, Line: %d", msg, file, line );
  40.     DebugStr( c2pstr( newMsg ) );
  41. }
  42.